﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace QueuesLib {
    [DataContract]
    public class QueueInfo {

        [DataMember(IsRequired = true, Order = 1)]
        public int SubjectId { get; set; }

        [DataMember(IsRequired = true, Order = 2)]
        public string SubjectName { get; set; }

        [DataMember(IsRequired = true, Order = 3)]
        public string WorkStationId { get; set; }

        [DataMember(IsRequired = true, Order = 4)]
        public string WorkStationName { get; set; }

        [DataMember(IsRequired = true, Order = 5)]
        public string TicketText { get; set; }

        public QueueInfo(int subjectId, string subjectName, string workStationId, string workStationName, Ticket ticket) {
            SubjectId = subjectId;
            SubjectName = subjectName;
            WorkStationId = workStationId;
            WorkStationName = workStationName;
            TicketText = ticket.Text;
        }

        public QueueInfo() {

        }
    }
}
